#Author: Guangfu Wang.

function(download_gflags_if_not_exist)
    conan_cmake_configure(REQUIRES gflags/2.2.2
            GENERATORS cmake_find_package)

    conan_cmake_autodetect(settings)

    conan_cmake_install(PATH_OR_REFERENCE .
            BUILD missing
            REMOTE conancenter
            SETTINGS ${settings})
endfunction(download_gflags_if_not_exist)
